package com.yswee.mallnavi.entity.info;

import com.yswee.mallnavi.R;
import com.yswee.mallnavi.entity.BaseEntity;

public class CategoryEntity extends BaseEntity {

    public String id;
    public String name;
    public String iconUrl;

    public int getIconResId(boolean selected) {
        if ("1F".equals(name)) {
            return selected ? R.drawable.icon_floor_1_selected : R.drawable.icon_floor_1;
        } else if ("2F".equals(name)) {
            return selected ? R.drawable.icon_floor_2_selected : R.drawable.icon_floor_2;
        } else if ("3F".equals(name)) {
            return selected ? R.drawable.icon_floor_3_selected : R.drawable.icon_floor_3;
        } else if ("4F".equals(name)) {
            return selected ? R.drawable.icon_floor_4_selected : R.drawable.icon_floor_4;
        } else if ("5F".equals(name)) {
            return selected ? R.drawable.icon_floor_5_selected : R.drawable.icon_floor_5;
        } else if ("6F".equals(name)) {
            return selected ? R.drawable.icon_floor_6_selected : R.drawable.icon_floor_6;
        } else if ("7F".equals(name)) {
            return selected ? R.drawable.icon_floor_7_selected : R.drawable.icon_floor_7;
        } else if ("8F".equals(name)) {
            return selected ? R.drawable.icon_floor_8_selected : R.drawable.icon_floor_8;
        } else if ("9F".equals(name)) {
            return selected ? R.drawable.icon_floor_9_selected : R.drawable.icon_floor_9;
        } else if ("B1".equals(name)) {
            return selected ? R.drawable.icon_floor_b1_selected : R.drawable.icon_floor_b1;
        } else if ("B2".equals(name)) {
            return selected ? R.drawable.icon_floor_b2_selected : R.drawable.icon_floor_b2;
        } else if ("B3".equals(name)) {
            return selected ? R.drawable.icon_floor_b3_selected : R.drawable.icon_floor_b3;
        }
        return 0;
    }
}
